<?	session_start(); 
	if(isset($_SESSION['id']) & isset($_SESSION['pass']))
	{

	require("koneksi.php");
	$query=mysql_query("select * from krs where nrp like'11103%' order by nrp");
	
?>
<center>
<table border="1">
	<th colspan="14">
		Tampilan Semua Nilai Mahasiswa Management 2003
	</th>
	<tr>
		<td>NRP</td>
		<td>Kode MK</td>
		<td>Status</td>
		<td>TTT1</td>
		<td>TTT2</td>
		<td>TTT3</td>
		<td>Lain-lain</td>
		<td>UTS</td>
		<td>UAS</td>
		<td>Grade</td>		
		<td>SKS</td>
		<td>Periode</td>
		<td colspan="2">Action</td>
	</tr>
	<?
		while ($row=mysql_fetch_row($query))
		{
			echo "<tr><td>$row[0]</td>
			<td>$row[1]</td>
			<td>$row[2]</td>
			<td>$row[3]</td>
			<td>$row[4]</td>
			<td>$row[5]</td>
			<td>$row[6]</td>
			<td>$row[7]</td>
			<td>$row[8]</td>
			<td>$row[9]</td>
			<td>$row[10]</td>
			<td>$row[11]</td>
			<td><a href=form_edit_nilai.php?nrp=$row[0]&&kode=$row[1]>Edit</a></td>
			<td><a href=del_nilai.php?nrp=$row[0]&&kode=$row[1]>Delete</a></td>
			</tr>";
		}?>
	<tr>
		<td colspan="14"><a href="form_add_nilai.php">Tambah Nilai</a></td>
	</tr>
	<tr>
		<td colspan="14"><a href="menu_nilai.php">Back to Menu Nilai</a></td>
	</tr>
	<tr>
		<td colspan="14"><a href="menu_admin.php">Back to Menu Admin</a></td>
	</tr>
</table>
</center>
<? 
	}
	else
	echo "Silahkan <a href='index.php'>Login</a> dulu.";
?>